#!/bin/bash
while [ `lj | tail  -n -1 | cut -d " " -f2` -gt 0 ]; do
echo `date` " Still" `lj | tail  -n -1 | cut -d " " -f2`  " runninng"
sleep 300
done
echo "`uname -n` has done" | sendmail rfrances@umd.edu
#mutt -s "`uname -n` has done" rfrances@umd.edu < /dev/null
